package cn.biplam.setup.code.product;

import cn.biplam.common.paramters.SysCaption;
import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.Result;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.callback.CallBack;
import cn.biplam.front.component.data.common.ButtonComp;
import cn.biplam.front.html.base.HtmlWindow;

public class ProductOptCallback implements CallBack{

	public HtmlWindow[] getGroup(Result data, String homeUrl, UserInfo mUser)
	throws ErrorMessage {
		/** 创建按钮 */
		HtmlWindow[] opetator=new HtmlWindow[2];
		/** 删除*/
		opetator[0]=ButtonComp.get(mUser, SysCaption.Edit);
		/** 修改*/
		opetator[1]=ButtonComp.get(mUser, SysCaption.Delete);
		return opetator;
	}
}
